// 门店相关接口
import axios from 'axios';

// 删除门店
export const deleteByPrimaryKey = (params) => axios.get('/api/enterprisestore/deleteByPrimaryKey', { params })

// 查询该门店下所有已绑定的课程
export const selectCourseStore = (params) => axios.get('/api/enterprisestore/selectCourseStore', { params })

// 添加门店
export const insertSelective = (params) => axios.post('/api/enterprisestore/insertSelective', params)

// 门店列表
export const selectByRule = (params) => axios.post('/api/enterprisestore/selectByRule', params)

// 门店列表 下拉专用
export const selectByRuleAll = (params) => axios.post('/api/enterprisestore/selectByRuleAll', params)

// 门店列表 管理查询页面专用
export const selectByRuleByParam = (params) => axios.post('/api/enterprisestore/selectByRuleByParam', params)

// 修改门店
export const updateByPrimaryKeySelective = (params) => axios.post('/api/enterprisestore/updateByPrimaryKeySelective', params)

// 门店审核
export const updateOffFlag = (params) => axios.post('/api/enterprisestore/updateOffFlag', params)

// 根据门店的id选择旗下的教练 /api/enterprisemembers/selectCoachByRule
export const selectCoachByRule = (params) => axios.post('/api/enterprisemembers/selectCoachByRule', params)

